package com.qyxx.platform.common.freemarker;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import freemarker.template.TemplateException;

public class Test {
	public static void main(String[] args) {
		FreeMarkerEngine free=new FreeMarkerEngine();
		Map<String,String> map=new HashMap<String, String>();
		map.put("markss", "梵蒂岡");
		try {
			free.create("salecontract.ftl", map, "E://website/html/1.jsp", "UTF-8");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (TemplateException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}


}
